﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class OrderedDictionary&lt;TK, TV&gt;
   | Advanced Algorithms </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class OrderedDictionary&lt;TK, TV&gt;
   | Advanced Algorithms ">
    <meta name="generator" content="docfx 2.59.4.0">
    
    <link rel="shortcut icon" href="../favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <meta property="docfx:navrel" content="">
    <meta property="docfx:tocrel" content="toc.html">
    
    <meta property="docfx:rel" content="../">
    
  </head>
  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div class="container body-content">
        
        <div id="search-results">
          <div class="search-list">Search Results for <span></span></div>
          <div class="sr-items">
            <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
          </div>
          <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
        </div>
      </div>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2">
  
  
  <h1 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2" class="text-break">Class OrderedDictionary&lt;TK, TV&gt;
  </h1>
  <div class="markdown level0 summary"><p>A sorted Dictionary implementation using balanced binary search tree. IEnumerable will enumerate in sorted order.
This may be better than regular Dictionary implementation which can give o(K) in worst case (but O(1) amortized
when collisions K is avoided).</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">Object</a></div>
    <div class="level1"><span class="xref">OrderedDictionary&lt;TK, TV&gt;</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;TK, TV&gt;&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring#system-object-tostring">Object.ToString()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">Object.Equals(Object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">Object.Equals(Object, Object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals#system-object-referenceequals(system-object-system-object)">Object.ReferenceEquals(Object, Object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode#system-object-gethashcode">Object.GetHashCode()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype#system-object-gettype">Object.GetType()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone#system-object-memberwiseclone">Object.MemberwiseClone()</a>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="Advanced.Algorithms.DataStructures.Foundation.html">Advanced.Algorithms.DataStructures.Foundation</a></h6>
  <h6><strong>Assembly</strong>: Advanced.Algorithms.dll</h6>
  <h5 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class OrderedDictionary&lt;TK, TV&gt; : IEnumerable&lt;KeyValuePair&lt;TK, TV&gt;&gt;, IEnumerable where TK : IComparable</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TK</span></td>
        <td><p>The key datatype.</p>
</td>
      </tr>
      <tr>
        <td><span class="parametername">TV</span></td>
        <td><p>The value datatype.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="constructors">Constructors
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2__ctor.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.%23ctor%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L20">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2__ctor_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.#ctor*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2__ctor" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.#ctor">OrderedDictionary()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public OrderedDictionary()</code></pre>
  </div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2__ctor_System_Collections_Generic_IEnumerable_System_Collections_Generic_KeyValuePair__0__1___.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.%23ctor(System.Collections.Generic.IEnumerable%7BSystem.Collections.Generic.KeyValuePair%7B%600%2C%601%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L29">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2__ctor_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.#ctor*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2__ctor_System_Collections_Generic_IEnumerable_System_Collections_Generic_KeyValuePair__0__1___" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.#ctor(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{`0,`1}})">OrderedDictionary(IEnumerable&lt;KeyValuePair&lt;TK, TV&gt;&gt;)</h4>
  <div class="markdown level1 summary"><p>Initialize the dictionary with given key value pairs sorted by key.
Time complexity: log(n).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public OrderedDictionary(IEnumerable&lt;KeyValuePair&lt;TK, TV&gt;&gt; sortedKeyValuePairs)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;TK, TV&gt;&gt;</td>
        <td><span class="parametername">sortedKeyValuePairs</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Count.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.Count%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L36">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Count_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.Count*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Count" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.Count">Count</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int Count { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">Int32</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Item__0_.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.Item(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L42">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Item_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.Item*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Item__0_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.Item(`0)">Item[TK]</h4>
  <div class="markdown level1 summary"><p>Get/set value for given key.
Time complexity: O(log(n)).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public TV this[TK key] { get; set; }</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TK</span></td>
        <td><span class="parametername">key</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TV</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Add__0__1_.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.Add(%600%2C%601)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L85">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Add_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.Add*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Add__0__1_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.Add(`0,`1)">Add(TK, TV)</h4>
  <div class="markdown level1 summary"><p>Add a new value for given key.
Time complexity: O(log(n)).
Returns the position (index) of the key in sorted order of this OrderedDictionary.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int Add(TK key, TV value)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TK</span></td>
        <td><span class="parametername">key</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">TV</span></td>
        <td><span class="parametername">value</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">Int32</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_AsEnumerableDesc.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.AsEnumerableDesc%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L188">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_AsEnumerableDesc_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.AsEnumerableDesc*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_AsEnumerableDesc" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.AsEnumerableDesc">AsEnumerableDesc()</h4>
  <div class="markdown level1 summary"><p>Descending enumerable.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public IEnumerable&lt;KeyValuePair&lt;TK, TV&gt;&gt; AsEnumerableDesc()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;TK, TV&gt;&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_ContainsKey__0_.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.ContainsKey(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L75">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_ContainsKey_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.ContainsKey*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_ContainsKey__0_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.ContainsKey(`0)">ContainsKey(TK)</h4>
  <div class="markdown level1 summary"><p>Does this dictionary contains the given key.
Time complexity: O(log(n)).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool ContainsKey(TK key)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TK</span></td>
        <td><span class="parametername">key</span></td>
        <td><p>The key to check.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
        <td><p>True if this dictionary contains the given key.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_ElementAt_System_Int32_.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.ElementAt(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L93">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_ElementAt_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.ElementAt*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_ElementAt_System_Int32_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.ElementAt(System.Int32)">ElementAt(Int32)</h4>
  <div class="markdown level1 summary"><p>Time complexity: O(log(n))</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public KeyValuePair&lt;TK, TV&gt; ElementAt(int index)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">Int32</a></td>
        <td><span class="parametername">index</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;TK, TV&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_GetEnumerator.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.GetEnumerator%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L64">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_GetEnumerator_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.GetEnumerator*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_GetEnumerator" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.GetEnumerator">GetEnumerator()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public IEnumerator&lt;KeyValuePair&lt;TK, TV&gt;&gt; GetEnumerator()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1">IEnumerator</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;TK, TV&gt;&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_GetEnumeratorDesc.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.GetEnumeratorDesc%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L193">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_GetEnumeratorDesc_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.GetEnumeratorDesc*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_GetEnumeratorDesc" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.GetEnumeratorDesc">GetEnumeratorDesc()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public IEnumerator&lt;KeyValuePair&lt;TK, TV&gt;&gt; GetEnumeratorDesc()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1">IEnumerator</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;TK, TV&gt;&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_IndexOf__0_.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.IndexOf(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L101">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_IndexOf_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.IndexOf*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_IndexOf__0_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.IndexOf(`0)">IndexOf(TK)</h4>
  <div class="markdown level1 summary"><p>Time complexity: O(log(n))</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int IndexOf(TK key)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TK</span></td>
        <td><span class="parametername">key</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">Int32</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Max.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.Max%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L156">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Max_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.Max*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Max" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.Max">Max()</h4>
  <div class="markdown level1 summary"><p>Time complexity: O(1).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public KeyValuePair&lt;TK, TV&gt; Max()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;TK, TV&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Min.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.Min%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L167">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Min_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.Min*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Min" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.Min">Min()</h4>
  <div class="markdown level1 summary"><p>Time complexity: O(log(n)).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public KeyValuePair&lt;TK, TV&gt; Min()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;TK, TV&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_NextHigher__0_.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.NextHigher(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L130">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_NextHigher_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.NextHigher*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_NextHigher__0_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.NextHigher(`0)">NextHigher(TK)</h4>
  <div class="markdown level1 summary"><p>Return the next higher key-value pair after given key in this dictionary.
Time complexity: O(log(n)).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public KeyValuePair&lt;TK, TV&gt; NextHigher(TK key)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TK</span></td>
        <td><span class="parametername">key</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;TK, TV&gt;</td>
        <td><p>Null if the given key does&apos;nt exist or next key does&apos;nt exist.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_NextLower__0_.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.NextLower(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L144">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_NextLower_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.NextLower*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_NextLower__0_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.NextLower(`0)">NextLower(TK)</h4>
  <div class="markdown level1 summary"><p>Return the next lower key-value pair before given key in this dictionary.
Time complexity: O(log(n)).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public KeyValuePair&lt;TK, TV&gt; NextLower(TK key)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TK</span></td>
        <td><span class="parametername">key</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;TK, TV&gt;</td>
        <td><p>Null if the given key does&apos;nt exist or previous key does&apos;nt exist.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Remove__0_.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.Remove(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L111">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Remove_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.Remove*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_Remove__0_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.Remove(`0)">Remove(TK)</h4>
  <div class="markdown level1 summary"><p>Remove the given key if it exists.
Time complexity: O(log(n)).
Returns the position (index) of the removed key if removed. Otherwise returns -1.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int Remove(TK key)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TK</span></td>
        <td><span class="parametername">key</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">Int32</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_RemoveAt_System_Int32_.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.RemoveAt(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L120">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_RemoveAt_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.RemoveAt*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_RemoveAt_System_Int32_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.RemoveAt(System.Int32)">RemoveAt(Int32)</h4>
  <div class="markdown level1 summary"><p>Remove the element at given index.
Time complexity: O(log(n)).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public KeyValuePair&lt;TK, TV&gt; RemoveAt(int index)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">Int32</a></td>
        <td><span class="parametername">index</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;TK, TV&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="eii">Explicit Interface Implementations
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_System_Collections_IEnumerable_GetEnumerator.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602.System%23Collections%23IEnumerable%23GetEnumerator%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L59">View Source</a>
  </span>
  <a id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_System_Collections_IEnumerable_GetEnumerator_" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.System#Collections#IEnumerable#GetEnumerator*"></a>
  <h4 id="Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2_System_Collections_IEnumerable_GetEnumerator" data-uid="Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary`2.System#Collections#IEnumerable#GetEnumerator">IEnumerable.GetEnumerator()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">IEnumerator IEnumerable.GetEnumerator()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerator">IEnumerator</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="implements">Implements</h3>
  <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">System.Collections.Generic.IEnumerable&lt;T&gt;</a>
  </div>
  <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">System.Collections.IEnumerable</a>
  </div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/justcoding121/advanced-algorithms/new/develop/apiSpec/new?filename=Advanced_Algorithms_DataStructures_Foundation_OrderedDictionary_2.md&amp;value=---%0Auid%3A%20Advanced.Algorithms.DataStructures.Foundation.OrderedDictionary%602%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/justcoding121/advanced-algorithms/blob/develop/src/Advanced.Algorithms/DataStructures/Dictionary/OrderedDictionary.cs/#L15" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
                <h5>In This Article</h5>
                <div></div>
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
